package com.browsesoft.htmlcomponent.field;

import org.w3c.dom.*;
import javax.servlet.http.*;

/**
 * 
 * <p>
 * Title: 字段值处理器
 * </p>
 * <p>
 * Description: Form组件处理字段值的接口，常规的已经处理过，特殊的处理器实现该接口
 * </p>
 * <p>
 * Copyright: Copyright (c) 2004
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author not attributable
 * @version 1.0
 */
public abstract class FieldValueProcessor {
	/**
	 * 对应的元素
	 */
	private Element config;

	/**
	 * 处理字段内容
	 */
	public abstract void setFieldValue(Element e, String value,
			HttpServletRequest request);

	/**
	 * 处理只读内容
	 */
	public abstract void setReadOnly(Element e, String value);

	public void setConfig(Element e) {
		this.config = e;
	}

	public Element getConfig() {
		return this.config;
	}
}
